package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 仓库库存表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_common_warehouse_stock")
public class YxCommonWarehouseStock {
    public static final String COL_ID = "id";
    public static final String COL_WAREHOUSE_ID = "warehouse_id";
    public static final String COL_GOODS_ID = "goods_id";
    public static final String COL_COUNT = "count";
    public static final String COL_BUY_OUT_STOCK = "buy_out_stock";
    public static final String COL_CREATE_TIME = "create_time";
    public static final String COL_CREATE_USER_ID = "create_user_id";
    public static final String COL_LAST_UPDATE_TIME = "last_update_time";
    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";
    public static final String COL_DELETE_TIME = "delete_time";
    public static final String COL_DELETE_USER_ID = "delete_user_id";
    public static final String COL_DATA_STATUS = "data_status";
    public static final String COL_ORGAN_ID = "organ_id";
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 仓库
     */
    @TableField(value = "warehouse_id")
    private String warehouseId;
    /**
     * 商品
     */
    @TableField(value = "goods_id")
    private String goodsId;
    /**
     * 库存数量
     */
    @TableField(value = "`count`")

    private BigDecimal count;
    /**
     * 是否需要购买出库的商品(0否 1是)
     */
    @TableField(value = "buy_out_stock")
    private Integer buyOutStock;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private String createUserId;
    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;
    /**
     * 最后修改人
     */
    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;
    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;
    /**
     * 删除人
     */
    @TableField(value = "delete_user_id")
    private String deleteUserId;
    /**
     * 删除状态(0删除 1正常)
     */
    @TableLogic
    @TableField(value = "data_status")
    private Integer dataStatus;
    /**
     * 组织id
     */
    @TableField(value = "organ_id")
    private String organId;
}